import Vue from 'vue'
import App from './App.vue'
import service from "./utils/service"
import router  from './router/index';
/* 将vuex.store对象植入到vue的根属性 */
import store  from './store';

// 引入vant组件
import { CountDown, Swipe, SwipeItem, Search, List, Icon, Grid, GridItem, 
  Image, TreeSelect, NavBar, Cell, CellGroup, Form, Field, Popup, Button, Tag,
  GoodsAction, GoodsActionIcon, GoodsActionButton, ShareSheet, CouponCell, CouponList, 
  Cascader, Toast, SubmitBar,Divider, Stepper, RadioGroup, Radio, DropdownMenu, DropdownItem, Switch,
  PullRefresh, SwipeCell, Card, Checkbox, CheckboxGroup,Empty} from 'vant';

Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(CountDown);
Vue.use(Search);
Vue.use(List);
Vue.use(Icon);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Image);
Vue.use(TreeSelect );
Vue.use(NavBar);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Form);
Vue.use(Field);
Vue.use(Popup);
Vue.use(Button);
Vue.use(Tag);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(ShareSheet);
Vue.use(CouponCell);
Vue.use(CouponList);
Vue.use(Cascader);
Vue.use(Toast);
Vue.use(SubmitBar);
Vue.use(Divider);
Vue.use(Stepper);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Switch);
Vue.use(PullRefresh);
Vue.use(SwipeCell);
Vue.use(Card);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Empty);



// 阻止显示生产模式的消息
Vue.config.productionTip = false
// 将service 挂载到vue上
Vue.prototype.service = service;

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
